<%@ page import="org.springframework.web.context.support.ServletContextResource" %>
<%@ page import="org.springframework.core.io.Resource" %>
<%@ page import="org.springframework.web.util.WebUtils" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    // 文件资源地址以相对于 web 应用路径的方式表示
    Resource res3 = new ServletContextResource(application, "/WEB-INF/classes/test/file1.txt");
    out.print(res3.getFilename()+"<br/>");
    out.print(WebUtils.getTempDir(application).getAbsoluteFile());
%>
<html>
<head>
    <title>Title</title>
</head>
<body>

</body>
</html>
